/**
 * 分片服务
 * 
 */
var sliceServiceApp = angular.module("sliceServiceApp", [ "commonApp" ]);

sliceServiceApp.service("sliceService", [
		"commonService",
		function(commonService) {
			
			/**
			 * 新增分片
			 */
			this.add = function(params, sback, eback) {
				commonService.call("tsp/slice/add", params, sback, eback);
			}
			
			/**
			 * 查询分片
			 */
			this.remove = function(params, sback, eback) {
				commonService.call("tsp/slice/delete", params, sback, eback);
			}
			
			/**
			 * 删除分片
			 */
			this.update= function(params, sback, eback) {
				commonService.call("tsp/slice/update", params, sback, eback);
			}
			
			/**
			 * 删除分片
			 */
			this.queryPage= function(params, sback, eback) {
				commonService.call("tsp/slice/queryPage", params, sback, eback);
			}
		}
]);